﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using SMG.Domain.Model.System;

namespace SMG.Domain.Specifications.System
{
    public class UserPasswordEqualsSpecification : Specification<User>
    {
        private readonly String _password;

        public UserPasswordEqualsSpecification(String password) {
            this._password = password;
        }

        public override global::System.Linq.Expressions.Expression<Func<User, bool>> GetExpression()
        {
            return u => u.PassWord == _password;
        }
    }
}
